StupidBeauty
Read times:275Posted at:Mon May 2 20:09:27 2011 - no title specified

Wt3.1.9文档翻译:WTabWidget类参考,WTabWidget Class Reference

这是一个使用标签窗格来组织内容的部件

这个部件将一个水平的WMenu 和一个WStackedWidget 以一个标签页的外观结合起来

一个标签部件会将标签条放置在内容的顶部,并且将下面的内容适配到其中。

使用示例

Wt::WTabWidget *examples = new Wt::WTabWidget(this);

 examples->addTab(helloWorldExample(), "Hello World");

 examples->addTab(chartExample(), "Charts");

 examples->addTab(new Wt::WText("A WText"), "WText");

 examples->currentChanged().connect(this, &MyClass::logInternalPath);

 examples->setInternalPathEnabled();

 examples->setInternalBasePath("/examples");

CSS

标签部件是由当前的CSS 主题来进行样式管理。(头部的)外观可以使用 Wt-tabs 这个CSS 类和以下的选择器来覆盖:

.Wt-tabs ul        : 列表

.Wt-tabs li        : 一个列表条目

.Wt-tabs span      : 一个列表条目的外框架

.Wt-span span span : 一个列表条目的内框架

一个WTabWidget 示例 (默认外观)

一个WTabWidget 示例 (polished风格)

未知美人

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4